const private = require('./private/private')
// 把最后更改时间更改为 中国地区的样式
const moment = require('moment');
moment.locale("zh-cn") //显示中国的时间格式

module.exports = {
  base: '/blog/',
  title: "白黎许",
  description: "挟飞仙以遨游，抱明月而长终",
  // dest: "dist",
  head: [
    ["link", {
      rel: "icon",
      href: "./favicon.svg"
    }],
    ['meta', {
      name: 'Keywords',
      content: '白黎许,白黎许的主页,bailixu,BaiLiXu'
    }],
    // 作者
    ['meta', {
      name: 'author',
      content: '白黎许,白黎许的主页,bailixu,BaiLiXu'
    }],
    ['script', {
      src: "/utils/js/jq3.5.1.js"
    }, ``],
    ['script', {
      src: "/utils/js/click.js"
    }, ``],
  ],
  theme: "reco",
  themeConfig: {
    // 博客配置
    type: "blog",
    fullscreen: true,
    logo: "/images/head_portrait.jpg", // 左侧logo
    blogConfig: {
      category: {
        location: 2, // 在导航栏菜单中所占的位置，默认2
        text: '分类' // 默认文案 “分类”
      },
      tag: {
        location: 3, // 在导航栏菜单中所占的位置，默认3
        text: '标签' // 默认文案 “标签”
      }
    },
    subSidebar: 'auto', //在所有页面中启用自动生成子侧边栏，原 sidebar 仍然兼容
    sidebar: "auto", //所有页面自动生成侧边栏
    author: "白黎许",
    authorAvatar: "/images/head_portrait.jpg", // 首页文章列表右边的头像
    mode: "auto", //默认显示模式  modePicker: false 关闭该按钮
    codeTheme: "okaidia", // default 'tomorrow' okaidia
    smooth: "true", //平滑滚动
    // 评论设置 
    valineConfig: {
      appId: private.appId,
      appKey: private.appKey,
      recordIP: true,
      placeholder: '填写邮箱地址可以及时收到回复噢...',
      visitor: true,
      // Qaz111104.
    },
    lastUpdated: '最后更新于',
    friendLink: [{
      title: '桥腐竹',
      desc: 'tap4fun的大佬',
      email: 'zhangsilin554466@qq.com',
      logo: "http://tofuknight.games/img/HeadImage.png",
      link: 'http://tofuknight.games/'
    }, {
      title: 'Mpixer',
      desc: '正在找工作的前端工程师',
      logo: "https://avatar.csdnimg.cn/4/3/E/1_qq_58191475_1621103665.jpg",
      link: 'https://blog.csdn.net/qq_58191475'
    }],
    nav: [
      // 导航栏
      {
        text: "主页",
        link: "/",
        icon: "reco-home"
      },
      {
        text: "工具箱",
        icon: "iconfont icon-tools",
        items: [{
          text: "哔哩哔哩",
          link: "https://www.bilibili.com/"
        },
        {
          text: "图片放大",
          link: "https://bigjpg.com/"
        },
        {
          text: "编程语言排行榜",
          link: "https://www.tiobe.com/tiobe-index/"
        },
        {
          text: "BootCdn猫云",
          link: "https://www.bootcdn.cn/"
        },
        ]
      },
      {
        text: "项目",
        icon: 'iconfont icon-tools',
        items: [{
          text: '白黎许的购物商场(移动端)',
          link: 'http://coderblx.gitee.io/mall',
          icon: "iconfont icon-shop"
        }, {
          text: '白黎许的后台管理系统(PC端)',
          link: 'http://coderblx.gitee.io/backend',
          icon: "iconfont icon-shop"
        }]
      },
      {
        text: "时间线",
        link: "/timeline/",
        icon: "reco-date"
      },
      {
        text: "留言板",
        link: "/views/others/message",
        icon: "reco-message"
      },
      {
        text: "关于",
        icon: "reco-message",
        items: [{
          text: "Gitee",
          link: "https://gitee.com/coderblx",
          icon: "reco-mayun",
        }, {
          text: "Github",
          link: "https://github.com/coderblx",
          icon: "reco-github",
        },]
      }
    ],
    // 项目开始时间
    startYear: '2021',
    noFoundPageByTencent: false
  },
  editLinks: true,
  editLinkText: '在 GitHub 上编辑此页 ！',
  markdown: {
    lineNumbers: true, //代码显示行号
  }, // 搜索设置
  plugins: {
    //一键复制代码插件: "vuepress-plugin-code-copy": "^1.0.6",
    "vuepress-plugin-code-copy": true,
    // 阅读进度条: "vuepress-plugin-reading-progress": "^1.0.10",
    "reading-progress": true,
    // 最后更改时间插件(内置)+moment 格式化为中国地区的样式
    '@vuepress/last-updated': {
      transformer: (timestamp, lang) => {
        return moment(timestamp).format('LLLL')
      }
    },
    // 看板娘插件 https://github.com/vuepress-reco/vuepress-plugin-kan-ban-niang
    "@vuepress-reco/vuepress-plugin-kan-ban-niang": {
      theme: ['z16', 'blackCat', 'whiteCat', 'haru1', 'haru2', 'haruto', 'koharu', 'izumi', 'shizuku', 'wanko', 'miku'],
      clean: false,
      messages: {
        home: '我是白黎许,欢迎你的关注 ',
        welcome: '心里的花，我想要带你回家。',
        theme: '去看看我的其他小伙伴~',
        close: '再见哦~'
      },
      width: 150,
      height: 219,
    },
    "dynamic-title": {
      showIcon: "./favicon.svg",
      showText: "(/≧▽≦/)咦！欢迎回来！",
      hideIcon: "./favicon.svg",
      hideText: "(●—●)等等，别走嘛！",
      recoverTime: 2000
    },
    'meting': {
      meting: {
        server: 'netease',
        type: 'playlist',
        mid: '6948153899',
      }, // 不配置该项的话不会出现全局播放器
      aplayer: {
        // 吸底模式
        fixed: true,
        // 默认迷你样式
        mini: true,
        // 自动播放
        autoplay: true,
        // 歌曲栏折叠
        listFolded: true,
        // 初始音量
        volume: 0.5,
        // 开启歌词显示
        lrcType: 3,
        // 播放顺序
        order: 'random',
      },
    },
    "ribbon-animation": {
      size: 90, // 默认数据
      opacity: 0.3, //  透明度
      zIndex: -1, //  层级
      opt: {
        // 色带HSL饱和度
        colorSaturation: "80%",
        // 色带HSL亮度量
        colorBrightness: "60%",
        // 带状颜色不透明度
        colorAlpha: 0.65,
        // 在HSL颜色空间中循环显示颜色的速度有多快
        colorCycleSpeed: 6,
        // 从哪一侧开始Y轴 (top|min, middle|center, bottom|max, random)
        verticalPosition: "random",
        // 到达屏幕另一侧的速度有多快
        horizontalSpeed: 200,
        // 在任何给定时间，屏幕上会保留多少条带
        ribbonCount: 2,
        // 添加笔划以及色带填充颜色
        strokeSize: 0,
        // 通过页面滚动上的因子垂直移动色带
        parallaxAmount: -0.5,
        // 随着时间的推移，为每个功能区添加动画效果
        animateSections: true
      },
      ribbonShow: false, //  点击彩带  true显示  false为不显示
      ribbonAnimationShow: true // 滑动彩带
    }
  }
}